import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-04
 * 16:08
 */
public class Test  {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int b= scan.nextInt();
        int c=scan.nextInt();
        int n=fun(a,b);
        System.out.println(n);
        System.out.println(fun2(a,b,c));
    }
    public static int fun(int a,int b){
        return a>b?a:b;
    }
    public static int fun2(int a,int b,int c){
        int abmax=fun(a,b);
        int MAX=fun(abmax,c);
        return MAX;
    }
}
